package com.devin.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.devin.filter.TPMonitorFilter;
import com.devin.service.EchoService;
import com.devin.service.SayService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

@Service
public class SayServiceImpl implements SayService {

    @Reference
    private EchoService echoService;

    @Override
    public void saySomeThing() {

        while (true) {
            echoService.sayHello1("hello1");

            echoService.sayHello2("hello2");

            echoService.sayHello3("hello3");

        }
    }
}
